package cn.edu.bjfu.practice.practice.student.controller;

import cn.edu.bjfu.practice.practice.app.common.response.ErrorFromUser;
import cn.edu.bjfu.practice.practice.app.common.response.Response;
import cn.edu.bjfu.practice.practice.manager.pojo.query.LoginForm;
import cn.edu.bjfu.practice.practice.student.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

@RestController
public class CourseController {

    @Autowired
    CourseService courseService;

    @PostMapping("/student/select_course")
    public Response<Object> selectCourse(Integer sno) {
        return Response.success(courseService.selectCourse(sno));
    }
}
